package com.example.demo.dao;

import com.example.demo.model.entity.UserModel;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

@Repository
public interface UserRepository extends JpaRepository<UserModel, String>, JpaSpecificationExecutor<UserModel> {

    UserModel findByUserNameAndRole(String userName, Integer role);
}
